<?php
$this->pageTitle = Lang::t('user.settings.page.breadcrumbs');
$this->breadcrumbs[] = Lang::t('user.settings.page.breadcrumbs');
?>
<div class="form">
    <?php
    $formConfig['htmlOptions']['class'] = 'form-horizontal';
    $formConfig['htmlOptions']['role'] = 'form';
    ?>
    <?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>

    <h1><?php echo Lang::t('user.settings.page.title'); ?></h1>
    <span class="help-block"><?php echo Lang::t('user.settings.form.note'); ?></span>

    <?php
    echo $form->alert(array($user), array(
        'errorMessageHtmlOptions' => array('class' => 'alert alert-danger'),
        'flashHtmlOptions' => array('class' => 'alert alert-'),
    ));
    ?>

    <div class="form-group">
        <?php echo $form->labelEx($user, 'language_', array('class' => 'col-sm-3 control-label')); ?>
        <div class="col-sm-4">
            <?php echo $form->dropDownList($user, 'language_', $user->languageOption, array('class' => 'form-control')); ?>
        </div>
        <?php //echo $form->error($user,'language_');  ?>
    </div>

    <div class="form-group">
        <?php echo $form->labelEx($user, 'gender_', array('class' => 'col-sm-3 control-label')); ?>
        <div class="col-sm-4">
            <?php
            echo $form->radioButtonList($user, 'gender_', $user->genderOption, array(
                'template' => '{beginLabel}{input} {labelTitle}{endLabel}',
                'labelOptions' => array('class' => 'radio-inline'),
                'separator' => ''
            ));
            ?>
        </div>
        <?php //echo $form->error($user,'gender_'); ?>
    </div>

    <div class="form-group">
        <button type="submit" class="btn btn-default" /><?php echo Lang::t('user.settings.btn.submit'); ?></button>
    </div>

    <?php $this->endWidget(); ?>
</div><!--form-->